<?
require_once("cms/core/helper/bean/Abstract.php");
require_once("cms/newsletter/om/NewsletterPeer.php");

class PHP_CMS_View_Helper_Newsletters extends AbstractList {

    public function newsletters($form=null) {

        if($this->isInit)
            return $this;

        parent::init($form);

        $this->criteria->setDistinct();
        
        return $this;

    }


    /**
     * Define the propel peer we are going to use to list
     * page items.
     */
    public static function getPeer() {
        return new NewsletterPeer();
    }


    /**
     * Return the searchable fields for this list page.
     */
    public static function getFields() {
        return array(
            NewsletterPeer::SUBJECT,
            NewsletterPeer::BODY,
            NewsletterPeer::STATUS,
            NewsletterPeer::SENT_DATE,
            NewsletterPeer::INSERT_DATE,
            NewsletterPeer::MODIFIED_DATE
        );
    }
}
?>